Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update readme #85

Merged
merged 5 commits into from
Apr 15, 2024
Merged

feat: update readme #85

merged 5 commits into from
Apr 15, 2024

Conversation

alichherawalla
Copy link
Contributor

@alichherawalla alichherawalla commented Apr 15, 2024

Ticket Link


Related Links


Description


Steps to Reproduce / Test


GIF's


Summary by CodeRabbit

  • Refactor
    • Updated the import path for the navigation service in the React Native template to enhance compatibility and consistency.
    • Converted object keys from strings to identifiers, updated reporters configuration, and reformatted the module mapper in jest.config.js for better readability.
    • Excluded a new directory for tests in sonar-project.properties to improve code analysis.
    • Adjusted paths for code coverage and test execution reports in sonar-project.properties for enhanced analysis.
    • Added a Jest mock for redux-persist in setupTests.js to improve testing setup and customization.

Copy link

coderabbitai bot commented Apr 15, 2024

Walkthrough

The changes encompass a variety of updates aimed at enhancing code quality and testing processes. These include adjusting import paths, updating Jest version, refining SonarQube configurations, and setting up Jest mocks for better testing capabilities.

Changes

File Path Change Summary
README.md, jest.config.js Import path for NavigationService updated to navigationService.js
jest.config.js Converted object keys to identifiers, updated reporters, reformatted module mapper
.github/workflows/build.yml Test coverage report generation step commented out, GITHUB_TOKEN removed from SonarQube Scan step
package.json Jest version updated from 24.5.0 to 25.5.4
sonar-project.properties Updated sonar.exclusions to exclude a new test directory, adjusted paths for sonar.javascript.lcov.reportPaths and sonar.testExecutionReportPaths
setupTests.js Added Jest mock for redux-persist to enhance testing setup

Poem

🐰🌟
Among the files and directories, a change did brew,
Paths updated, configurations anew.
Tests skipped, SonarQube left alone,
Jest version leaped, with a higher tone.
Code quality enhanced, in each line and space,
A rabbit's touch, a coding grace.
🐾🌼


Recent Review Details

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 930eb2e and 6492ee3.
Files ignored due to path filters (1)
  • yarn.lock is excluded by !**/*.lock
Files selected for processing (6)
  • .github/workflows/build.yml (1 hunks)
  • README.md (1 hunks)
  • jest.config.js (2 hunks)
  • package.json (1 hunks)
  • setupTests.js (1 hunks)
  • sonar-project.properties (1 hunks)
Files skipped from review as they are similar to previous changes (4)
  • .github/workflows/build.yml
  • jest.config.js
  • package.json
  • sonar-project.properties
Additional comments not posted (2)
setupTests.js (1)

5-11: The Jest mock setup for redux-persist is correctly implemented to simplify testing by directly returning reducers. This is a good use of jest.requireActual to maintain other functionalities intact.

README.md (1)

84-84: The update to the import path of NavigationService to navigationService.js is crucial for ensuring compatibility with case-sensitive file systems. Good catch!


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

github-actions bot commented Apr 15, 2024

Coverage report

St.
Category Percentage Covered / Total
🟢 Statements 93.2% 192/206
🟢 Branches 87.8% 36/41
🟢 Functions 89.74% 70/78
🟢 Lines 93.85% 168/179

Test suite run success

48 tests passing in 20 suites.

Report generated by 🧪jest coverage report action from 6492ee3

@alichherawalla alichherawalla force-pushed the feat/readme branch 2 times, most recently from 1f6b4eb to c05ec5b Compare April 15, 2024 20:35

This comment has been minimized.

2 similar comments

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

1 similar comment

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

Copy link

sonarqube-ws bot commented Apr 15, 2024

Passed

Analysis Details

0 Issues

  • Bug 0 Bugs
  • Vulnerability 0 Vulnerabilities
  • Code Smell 0 Code Smells

Coverage and Duplications

  • Coverage No coverage information (0.00% Estimated after merge)
  • Duplications No duplication information (0.00% Estimated after merge)

Project ID: wednesday-solutions_react-native-template_AY7hdnRSB2n8RRmGoU2M

View in SonarQube

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Actionable comments outside the diff hunks (1)
README.md (1)

Line range hint 1-1: Please add alt text to images to improve accessibility.

- <img align="left" src="https://github.com/wednesday-solutions/react-native-template/blob/master/react_native_template_github.svg" width="480" height="510" />
+ <img alt="React Native Template Logo" align="left" src="https://github.com/wednesday-solutions/react-native-template/blob/master/react_native_template_github.svg" width="480" height="510" />

Comment on lines 81 to 87
- [Redux](https://redux.js.org/) (v4.0.1) to help manage state
- [Redux Persist](https://github.com/rt2zz/redux-persist) (v5.10.0) to persist the Redux state
- [Redux Sagas](https://redux-saga.js.org) (v1.0.2) to separate side-effects and logic from state and UI logic
- [React Navigation](https://reactnavigation.org/) (v3.11.2) with a [`NavigationService`](app/services/NavigationService.js) to handle routing and navigation in the app, with a splash screen setup by default
- [React Navigation](https://reactnavigation.org/) (v3.11.2) with a [`NavigationService`](app/services/navigationService.js) to handle routing and navigation in the app, with a splash screen setup by default
- [reduxsauce](https://github.com/infinitered/reduxsauce) (v1.0.1) to facilitate using Redux
- [apisauce](https://github.com/infinitered/apisauce/) to make API calls (v0.19.0)
- [prettier](https://prettier.io/) and [eslint](https://eslint.org/) preconfigured for React Native
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 NOTE
This review was outside the diff hunks and was mapped to the diff hunk with the greatest overlap. Original lines [52-138]

There are several markdown syntax issues related to list indentation and spacing around headings. These should be corrected to improve the readability of the document.

- ### Atomic Design for react native architecture
+ ### Atomic Design for React Native Architecture

- - **Atoms**
+ - **Atoms:**

- - **Molecules**
+ - **Molecules:**

- - **Organisms**
+ - **Organisms:**

- ### Running expo project
+ ### Running Expo Project

- ### Useful documentation
+ ### Useful Documentation

@alichherawalla alichherawalla merged commit 434bc5e into master Apr 15, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant